﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopWlbAuthorization")]
    public class TopWlbAuthorization : BaseObject
    {
        //begin
        public TopWlbAuthorization()
        {}
        public TopWlbAuthorization(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _AuthorizeId;
        public string AuthorizeId
        {
            get
            {
                return _AuthorizeId;
            }
            set
            {
                SetPropertyValue("AuthorizeId", ref _AuthorizeId, value);
            }
        }
        private string _Name;
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _OwnerUserId;
        public string OwnerUserId
        {
            get
            {
                return _OwnerUserId;
            }
            set
            {
                SetPropertyValue("OwnerUserId", ref _OwnerUserId, value);
            }
        }
        private string _ItemId;
        public string ItemId
        {
            get
            {
                return _ItemId;
            }
            set
            {
                SetPropertyValue("ItemId", ref _ItemId, value);
            }
        }
        private string _ConsignUserId;
        public string ConsignUserId
        {
            get
            {
                return _ConsignUserId;
            }
            set
            {
                SetPropertyValue("ConsignUserId", ref _ConsignUserId, value);
            }
        }
        private long _Quantity;
        public long Quantity
        {
            get
            {
                return _Quantity;
            }
            set
            {
                SetPropertyValue("Quantity", ref _Quantity, value);
            }
        }
        private string _RuleCode;
        public string RuleCode
        {
            get
            {
                return _RuleCode;
            }
            set
            {
                SetPropertyValue("RuleCode", ref _RuleCode, value);
            }
        }
        private DateTime _AuthorizeStartTime;
        public DateTime AuthorizeStartTime
        {
            get
            {
                return _AuthorizeStartTime;
            }
            set
            {
                SetPropertyValue("AuthorizeStartTime", ref _AuthorizeStartTime, value);
            }
        }
        private DateTime _AuthorizeEndTime;
        public DateTime AuthorizeEndTime
        {
            get
            {
                return _AuthorizeEndTime;
            }
            set
            {
                SetPropertyValue("AuthorizeEndTime", ref _AuthorizeEndTime, value);
            }
        }
        private string _Status;
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        //end
    }
}
